/*
 * @Author       : ljkt
 * @Version      : 1.0
 * @Date         : 2021-10-05 18:00:43
 * @LastEditors: ljkt
 * @LastEditTime: 2025-09-28 20:54:53
 * @Description  :
 */

#ifndef _Dev_BuzXy_H_
#define _Dev_BuzXy_H_

#define Drv_BuzXy_Task_Time ((u8_t)(10))
#define Dev_Set_BuzXy_Cmd(cmd) (gDev_BuzXy.UpFlag = REF_TRUE, gDev_BuzXy.Cmd = cmd)
enum
{
    e_INDEX_XY_Buz_No_Cmd = 0,
    e_INDEX_XY_Buz_4K_Sing_100MS_1,
    e_INDEX_XY_Buz_4K_Sing_1000MS_1,
    e_INDEX_XY_Buz_4K_Sing_1000MS_CYCLE,
    e_INDEX_XY_Buz_4K_Sing_2000MS_1,
    e_INDEX_XY_Buz_4K_Sing_3000MS_1,
};
typedef struct
{
    u16_t F_Pwm;
    u16_t Duty_Pwm;
    u16_t Time;
    u16_t Power;

} s_1yiejie_t;
typedef struct
{
    u8_t Cmd;
    u8_t UpFlag;
    u8_t Sta;
} s_dev_buzxy_t;
extern Ram s_dev_buzxy_t gDev_BuzXy;
void Dev_BuzXy_Init(void);
void Drv_BuzXy_Scan(void);

#endif
